import React,{Component} from "react"
import Animate from 'rc-queue-anim'
import $ from "jquery"
export default class LaudPeople extends Component {
	constructor(props){
		super(props)
		this.state={

		}
	}

	//点击成员名字切换
	toggleother(){
		let people=this.props.laud
		let username=people.slice(0,people.length-1)
		window.location="/user/"+username
	}
	
	render(){
		return (
			<Animate    
                  type={["left","left"]}
                  duration={800}                             //每个动画的时间是2500毫秒
                  interval={100}                              //每个动画的间隔时间是1000毫秒
                  ease={["easeOutElastic","easeOutBounce"]}  //进场是easeOutElastic这种缓动类型，出场是easeOutBounce这种缓动类型  网址：http://easings.net/zh-cn
                  appear={true}                              //第一次进场的时候是否有动画
                  component="span"                            //把Animate标签替换为div标签
            >
			<span onClick={(e)=>this.toggleother(e)} style={{color:"blue",cursor:"pointer"}}>{this.props.laud}</span>
		  	</Animate>	
		)
	}
}












